package com.bruce.demo.sequence.dao;

import com.bruce.demo.sequence.dto.SequenceInfoDto;

import java.util.List;

/**
 * @author luotuan
 * @Description
 * @create 2020-04-09 16:56
 **/
public interface SequenceDao {
    String cloums = "id,sys_code,code,server_cache_size,client_increment_size,client_cache_size,min_value,state,remarks,create_time";
    String cloums2 = "sys_code,code,server_cache_size,client_increment_size,client_cache_size,min_value,state,remarks,create_time";

    List<SequenceInfoDto> queryAll();

    SequenceInfoDto queryOne(String sysCode, String code);

    boolean addSequence(SequenceInfoDto sequenceInfo);

    Long getMinValue(String sysCode, String code);

    boolean updateMinValue(String sysCode, String code, long minValue);
}
